<?xml version="1.0" encoding="ISO-8859-1"?>

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.org/ui"
                template="/WEB-INF/templates/generaldashboard.xhtml">
        
        <ui:define name="title"><h:outputText value="ZeROSQUARE" /></ui:define>
        <ui:define name="header"><h:outputText value="ZeROSQUARE" /></ui:define>
        
        <ui:define name="account-name">
        <h:form id="dashform">
                        
         <p:messages id="messages" />
                  
        <p:commandButton id="myhomebutton" action="goHome" update="messages" style="float:right;" icon="ui-icon-check" value="Home" />
        <p:commandButton id="logoutbutton" action="LogOut" update="messages" style="float:right;" icon="ui-icon-check" value="LogOut" />
				   
	   </h:form>
        </ui:define>
        <ui:define name="transhist">
        <h:form id="transhistForm">
        <p:messages id="messages" />
        
  
	    <p:dataTable id="dataTable" var="car" value="#{table.carsSmall}" sortMode="multiple" rows="10" paginator="true">  
	        <f:facet name="header">  
	            AJAX Sorting  
	        </f:facet>  
	  
	        <p:column sortBy="#{car.model}" headerText="Model">  
	            <h:outputText value="#{car.model}" />  	
	        </p:column>  
	  
	        <p:column sortBy="#{car.year}" headerText="Year">  
	            <h:outputText value="#{car.year}" />  
	        </p:column>  
	  
	        <p:column sortBy="#{car.manufacturer}" headerText="Manufacturer">  
	            <h:outputText value="#{car.manufacturer}" />  
	        </p:column>  
	  
	        <p:column sortBy="#{car.color}" headerText="Color">  
	            <h:outputText value="#{car.color}" />  
	        </p:column>  
	    </p:dataTable>  
  
		</h:form>  
        
       </ui:define>
        
</ui:composition>
